package practpl.nueve;

import java.io.FileNotFoundException;
import java.io.IOException;

import org.antlr.runtime.ANTLRFileStream;
import org.antlr.runtime.CharStream;
import org.antlr.runtime.CommonTokenStream;
import org.antlr.runtime.RecognitionException;

public class Procesador9 
{
	
	public static void main(String args[]) throws RecognitionException, IOException {
	
		try {
			CharStream fis = new ANTLRFileStream("entrada.txt");
			CommonTokenStream tokens = new CommonTokenStream();	
			
			AnalizadorLexer analex = new AnalizadorLexer(fis);
			tokens.setTokenSource(analex);
			AnalizadorParser anasint = new AnalizadorParser(tokens);
			anasint.biblioteca();
			
		
		} catch(FileNotFoundException fnfe) {
			System.err.println("No se encontró el fichero");
		}
	}	
}
